#ifndef __TEMP_SENSOR
#define __TEMP_SENSOR

#include "config.h"

typedef struct _TempSensor TempSensor;
#define TEMP_SENSOR(any) ((TempSensor *)(any))

extern TempSensor *temp_sensor_new_from_global(void);

/**
 * @brief 获取温度传感器的温度
 */
extern float temp_sensor_get_temp(TempSensor *self);

#endif
